package mysql

import "gorm.io/gorm"

type TieBa struct {
	gorm.Model
	Title   string `gorm:"type:char(32);not null;comment:'标题'"`
	Image   string `gorm:"type:varchar(500);not null;comment:'图片"`
	Class   string `gorm:"type:varchar(50);not null;comment:'作者'"`
	Num     int64  `gorm:"type:int(11);not null;comment:'人数'"`
	Context string `gorm:"type:varchar(200);not null;comment:'内容'"`
	UserId  int64  `gorm:"type:int(11);not null;comment:'用户id'"`
}
